package restaurant.core;

import restaurant.gui.Coordinate;
import jade.core.AID;

public class Table {
	private boolean free;
	private AID customer;
	private Coordinate coordinate;
	private String customerType;
	
	public Table(boolean free, Coordinate coordinate) {
		this.free = free;
		this.coordinate = coordinate;
	}
	
	public boolean isFree() {
		return free;
	}
	
	public AID getCustomer() {
		return customer;
	}
	
	public void setFree(boolean free) {
		this.free = free;
	}
	
	public void setCustomer(AID customer) {
		this.customer = customer;
	}
	
	public Coordinate getCoordinate() {
		return coordinate;
	}
	
	public void setCoordinate(Coordinate coordinate) {
		this.coordinate = coordinate;
	}
	
	public String getCustomerType() {
		return customerType;
	}
	
	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}
	
	@Override
	public String toString() {
		return coordinate.x + ", " + coordinate.y;
	}
}